package com.defangit.production.domain;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 派工单实体类
 */
public class ProductionProcess {
    private int id;
    private String no;
    private ManufactureItem item;
    private ProcessSection processSection;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private Operator liable;
    private LocalDateTime expectStartTime;
    private LocalDateTime expectEndTime;
    private WorkShop workShop;
    private List<MaterialsBill> bills;
    private List<Operator> workers;

    public List<Operator> getWorkers() {
        return workers;
    }

    public ProductionProcess setWorkers(List<Operator> workers) {
        this.workers = workers;
        return this;
    }

    public List<MaterialsBill> getBills() {
        return bills;
    }

    public ProductionProcess setBills(List<MaterialsBill> bills) {
        this.bills = bills;
        return this;
    }

    public WorkShop getWorkShop() {
        return workShop;
    }

    public ProductionProcess setWorkShop(WorkShop workShop) {
        this.workShop = workShop;
        return this;
    }

    public LocalDateTime getExpectStartTime() {
        return expectStartTime;
    }

    public ProductionProcess setExpectStartTime(LocalDateTime expectStartTime) {
        this.expectStartTime = expectStartTime;
        return this;
    }

    public LocalDateTime getExpectEndTime() {
        return expectEndTime;
    }

    public ProductionProcess setExpectEndTime(LocalDateTime expectEndTime) {
        this.expectEndTime = expectEndTime;
        return this;
    }

    public int getId() {
        return id;
    }

    public ProductionProcess setId(int id) {
        this.id = id;
        return this;
    }

    /**
     * 派工单编号
     * @return 派工单编号
     */
    public String getNo() {
        return no;
    }

    public ProductionProcess setNo(String no) {
        this.no = no;
        return this;
    }

    /**
     * 当前工序派工单完工产品
     * @return 当前工序派工单完工产品
     */
    public ManufactureItem getItem() {
        return item;
    }

    public ProductionProcess setItem(ManufactureItem item) {
        this.item = item;
        return this;
    }

    /**
     * 派工单所属的工序
     * @return 派工单所属的工序
     */
    public ProcessSection getProcessSection() {
        return processSection;
    }

    public ProductionProcess setProcessSection(ProcessSection processSection) {
        this.processSection = processSection;
        return this;
    }

    /**
     * 派工单开始时间
     * @return 派工单开始时间
     */
    public LocalDateTime getStartTime() {
        return startTime;
    }

    public ProductionProcess setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
        return this;
    }

    /**
     * 派工单完成时间
     * @return 派工单完成时间
     */
    public LocalDateTime getEndTime() {
        return endTime;
    }

    public ProductionProcess setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    /**
     * 派工单责任人
     * @return 派工单责任人
     */
    public Operator getLiable() {
        return liable;
    }

    public ProductionProcess setLiable(Operator liable) {
        this.liable = liable;
        return this;
    }
}
